package cloudspace.config;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;


public class ServletLocationFinder implements ServletContextListener
{
    public static String getServletResourcePath( String path )
    {
        return context.getRealPath( path );
    }

    private static ServletContext context;


    public void contextDestroyed( ServletContextEvent arg0 )
    {
    }


    public void contextInitialized( ServletContextEvent arg0 )
    {
        context = arg0.getServletContext();
    }
}
